﻿@model XPressify.Models.ThreadCreateModel
@using Omu.Awesome.Core;
@using Omu.Awesome.Mvc.Helpers;

@{
    ViewBag.Title = "Message";
}

@using (Html.BeginForm())
{
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>Message</legend>
            
            
            <div class="editor-field">
                @Html.LabelFor(model => model.Subject) : <br />
                @Html.TextBoxFor(model => model.Subject, new { style = "width:488px" })
                @Html.ValidationMessageFor(model => model.Subject)
            </div>
            
            <div class="editor-field" style="height:240px">
                @Html.LabelFor(model => model.Message) : <br />
                @Html.TextAreaFor(model => model.Message, 12, 53, new { style = "resize: none;" })
                @Html.ValidationMessageFor(model => model.Message)
            </div>
            
            Select participants: <br />
            <ul class='ae-lookup-list'>
                @Html.HiddenFor(model => model.CurrentUserId)
                @(Html.LookupFor(o => o.UsersSelected, controller: "FriendsLookup", multiselect: true, clearButton: true, data: new Dictionary<string, string> { { "CurrentUserId", "currentUserIdString" } },title:"Select participants"))
            </ul>

        </fieldset>

     }